<%@ page language="java" pageEncoding="UTF-8" %>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

		<!DOCTYPE html>
		<html>

		<head>
			<meta charset="UTF-8">
			</meta>
			<base href="${pageContext.request.contextPath}/">
			<title>首页_${site}</title>
			<link rel="stylesheet" type="text/css" href="/css/index.css" />
			<script src="../js/jquery-3.6.0.js"></script>
			<script src="../js/jquery-form.js" type="text/javascript"></script>
			<script src="../js/template.js"></script>
			<script src="/layer/layer.js"></script>
		</head>

		<body class="index">
			<div class="container">
				<jsp:include page="header.jsp"></jsp:include>
				<jsp:include page="navbar.jsp"></jsp:include>
				<jsp:include page="search.jsp"></jsp:include>

				<div class="wrapper clearfix">
					<div class="sidebar f_r">
						<!--热卖商品-->
						<div class="hot box m_10">
							<div class="title">
								<h2>热卖商品</h2>
							</div>
							<div class="cont clearfix">
								<ul class="prolist">

									<c:forEach items="${hotGoods}" var="hotGoods">
										<li><a href="goods?opr=view&id=${hotGoods.id}"><img src="${hotGoods.img}"
													width="85" height="85" alt="${hotGoods.bookName}"
													style=" display: block; border-radius: 5%;" /></a>
											<p class="pro_title">
												<a href="goods?opr=view&id=${hotGoods.id}">${hotGoods.bookName}</a>
											</p>
											<p class="brown">
												<b>${hotGoods.sellingPrice}￥</b>
											</p>
										</li>
									</c:forEach>


								</ul>
							</div>
						</div>
					</div>

					<div class="main f_l">
						<!--最新商品-->
						<div class="box yellow m_10">
							<div class="title title3">
								<h2>
									<img src="images/front/new_product.gif" alt="最新商品" width="160" height="36" />
								</h2>
							</div>
							<div class="cont clearfix">
								<ul class="prolist">
									<c:forEach items="${newGoods}" var="newGoods">

										<li style="overflow:hidden"><a href="goods?opr=view&id=${newGoods.id}"
												target="_blank"><img src="${newGoods.img}" width="175" height="175"
													alt="${newGoods.bookName}" title="${newGoods.bookName}"
													style=" display: block; border-radius: 5%;" /></a>
											<p class="pro_title">
												<a title="${newGoods.bookName}"
													href="goods?opr=view&id=${newGoods.id}">${newGoods.bookName}</a>
											</p>
											<p class="brown">
												惊喜价：<b>${newGoods.sellingPrice}￥</b>
											</p>
											<p class="light_gray">
												市场价：<s>${newGoods.marketPrice}￥</s>
											</p>
										</li>
									</c:forEach>

								</ul>
							</div>
						</div>
						<!--最新商品-->
					</div>
				</div>
				<jsp:include page="help.jsp"></jsp:include>
				<jsp:include page="footer.jsp"></jsp:include>
			</div>
		</body>

		</html>